﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_DSSanPham.ascx.cs"
    Inherits="WebApplication.Controls.UC_DSSanPham" %>
<%@ Register Src="UC_Pages.ascx" TagName="UC_Pages" TagPrefix="uc1" %>
<div>
    <asp:Label Text="From" runat="server" ID="lbl1" CssClass="lables" />
    <asp:TextBox runat="server" ID="txtGia1" CssClass="texts1" />
    <asp:Label Text="To" runat="server" ID="lbl2" CssClass="lables" />
    <asp:TextBox runat="server" ID="txtGia2" CssClass="texts1" />
    <asp:TextBox runat="server" ID="txtTimKiem" CssClass="texts2" />
    <asp:Button Text="Tìm Kiếm" ID="btnTimKiem" runat="server" CssClass="buttons" 
        onclick="btnTimKiem_Click" />
</div>
<asp:DataList ID="dlDSSanPham" runat="server" RepeatColumns="4" 
    onitemcommand="dlDSSanPham_ItemCommand">
    <ItemTemplate>
        <div class="sanpham">
            <img src='<%# BLL.LinkBLL.ToHinhAnhSanPham(Eval("AnhXemTruoc").ToString()) %>' alt="abc" />
            <div class="chitiet">
                <p>
                    <%#HttpUtility.HtmlEncode(Eval("TenSP"))%>
                </p>
                <p class="gia">
                    <%#HttpUtility.HtmlEncode(Eval("Gia", "{0:0,0 VND}").ToString())%>
                </p>
                <p class="themvaogiohang bt">
                     <asp:LinkButton runat="Server" ID="lbtnThem" CommandName="Them">Mua</asp:LinkButton>
                </p>
                <p class="xemchitiet bt">
                    <a href='<%#BLL.LinkBLL.ToSanPham(Eval("IDSP").ToString()) %>'>Chi Tiết</a>
                </p>
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>
<uc1:UC_Pages ID="pagerBottom" Visible="false" runat="server" />
